package com.qcby.service;

import com.qcby.common.MyExam.ResData;
import com.qcby.common.MyExam.ShowByPage;
import com.qcby.entity.Exam;
import com.qcby.entity.Result;

import java.util.List;

public interface MyTestService {

    //展示教师发布的考试与笔记自测
    Result<List<ResData>> showExamInfoByPage(ShowByPage info);

    //获取所有可显示考试的数量
    Result<Integer> getExamCount(ShowByPage info);

    //通过信息获取考试id
    Result<Exam> getExamIdByInfo(Exam info);

    //定时轮询获取考试信息实现考试状态的定时更新
    Result<List<ResData>> getAllExamInfoByName(String name);
}
